<include file="__PUBLIC__/_header" />
<script src="__APP_SKIN__css/goodsDetails_2.css?1"></script>
<script src="__APP_SKIN__css/css.css?1"></script>
<script src="__APP_SKIN__js/index_1.js?44"></script>
<body>
<style>

    .number a.hcollect{
         right: -90px;background: #f90;
    }
    .detail-box .online div.bt {
        width: 120px;
        height: 37px;cursor: pointer;
    }
    .detail-box .online .on {
        width: 120px;
        height: 37px;
        border-top: 3px solid #19b1e3;
        border-right: 2px solid #e6e5e4;     border-left: 2px solid #e6e5e4;
        border-bottom: 2px solid #fff;
    }
    .xl li>span {
        display: inline-block;
        width: 30%;
        text-align: left;
        padding: 10px;overflow: hidden;
    }
	.yuan{position:absolute;right:-3px;top:-10px;background:red;color:#fff;border-radius:10px;padding:0px 5px 0px 6px;font-size:10px;
    line-height:18px;-moz-border-radius:10px; -webkit-border-radius:10px;display:block;}
	
</style>
<!--头部开始-->
<include file="__PUBLIC__/_nav" />
<!--头部结束-->
    
    <!--主体开始-->
    <div class="detail-box" style="overflow: hidden">
        <div class="type">
            <h3>
                <div class="searchInfo-order">商品详情</div>
            </h3>
        </div>
        <div class="detail-main">
            <div class="clearfix" id="content" style="height: 500px; width: 500px; float: left;">
                <div class="clearfix" id="fdj" style="position: relative">
                            <div class="zoomPad">
                               <img src="/data/product/{$kind_goods.item_no}.jpg" onerror="this.src='__APP_SKIN__images/fault.jpg'" original="__APP_SKIN__images/fault.jpg" width="400" height="400" style="border: 1px solid #999;"> 
                            </div>

                        <div class="cu_big_pic"></div>
                </div>
                <br>
            </div>

            <div class="detail-main-right">
                <h1 style="font-size: 20px; font-weight: bold" id="productName">{$kind_goods.item_name}</h1>

                <h2 id="sku">条码：{$kind_goods.item_no}</h2>
                <h2 style="color: #ff7302; font-weight: bold; font-size: 18px; line-height: 30px;">
                    <dl class="productdescription">
                        <dt id="systemPrice">批发价：￥ {$kind_goods|getProductSalePriceByUserType=0} 元 </dt>
                    </dl>
                    <div style="clear: both;"></div>
                    <dl class="productdescription">
                        <dt id="salePrice">零售价：￥ {$kind_goods.sale_price|round=2}</dt>
                    </dl>
					<if condition="$promotion_data['price'] gt 0">
					<dl class="productdescription">
                        <dt id="salePrice" style="color:red">促销价：￥ {$promotion_data.price|round=2}<h3 style="color:red" class="limit_time" data-time="{$promotion_data.m_deliver_limit_time}"></h3></dt>
						
                    </dl>
					</if>
                </h2>
                <!--<h2 id="isSaleBack" style="padding-top: 5px">是否可退：-->
                        <!--不可退-->
                <!--</h2>-->
				<h3>单位：{$kind_goods.unit_no}</h3>
				<h3>整件规格：{$kind_goods.item_size}</h3>
                <h2 id="marketUnit">配送规格：{$kind_goods.chasedo_spec|round=2} </h2>
				<h3>库存: 
					<if condition="$kind_goods['stock_qty'] lt 0 or $kind_goods['stock_qty'] eq 0">
						暂不显示
						<else/>
						暂不显示
					</if>
				</h3>
				<span style="color:#555">{$kind_goods|getProductRefundTitle}</span>
                <!--<h2 id="pakgUnit">包 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;装：1.00 瓶</h2>-->
                <!--<div class="pink" style="padding-bottom: 1px; overflow: hidden; margin-bottom: 10px; display: block;">-->
                    <!--<h2 id="shopPoint">-->
                        <!--<div style="float: left">促销信息：&nbsp;</div>-->
                        <!--<div class="cuxiaocss">-->
                            <!--<span class="Givegif">买赠</span>-->
                            <!--天之蓝促销-->
                            <!--<br>-->
                            <!--<dl style="padding-left: 50px">-->
                                <!--<dd><span style="color: #19b1e3">赠品：</span>蒙牛200ml纯甄牛奶(进加多宝50010件+加多宝1.5L5件不累计送蒙牛200ml纯甄1提） ×1.00</dd>-->

                            <!--</dl>-->
                        <!--</div>-->
                    <!--</h2>-->
                <!--</div>-->
                <div class="number" style="position:relative">			
                    <input id="text_box" name="" type="text" class="onlyint" maxlength="6"  value="{$kind_goods.chasedo_spec|round=2}"<if condition="$kind_goods['chasedo_spec'] neq 1">
												readonly
										</if>	
								>
                     <div class="add" data-chasedo_spec='{$kind_goods.chasedo_spec|round=2}'></div>
					<div class="min" data-chasedo_spec='{$kind_goods.chasedo_spec|round=2}'></div>
					<if condition="$promotion_data['price'] gt 0">
						<a class="buy hbtnbuy" id="btnBuy_{$kind_goods.item_no}" data-mid="{$kind_goods.item_no}" data-price="{$promotion_data.price}">立即订购<span class="yuan circular circular_{$kind_goods.item_no}" >{$goods_cart_user_total}</span></a>						
						<else/>
						<a class="buy hbtnbuy" id="btnBuy_{$kind_goods.item_no}" data-mid="{$kind_goods.item_no}" data-price="{$kind_goods|getProductSalePriceByUserType}">立即订购<span class="yuan circular circular_{$kind_goods.item_no}" >{$goods_cart_user_total}</span></a>
					</if>
                    <a class="buy hcollect"  data-mid="{$kind_goods.item_no}" >立即收藏
                    </a>
                </div>

            </div>
        </div>
<div style="margin-top: 50px; width: 100%">
    <div class="online clearfix" >
        <div class=" on bt hl"  style=" float: left;">我的购买历史</div>

    </div>
   
    <div class="history_list" style="display: ">
        <ul class="xl">
            <li><span>订单号</span><span>时间</span><span>数量</span></li>
            <volist name="history_list" id="hlvo">
                <li><span><a href="{:Controller::_createUrl('index/orderdetail')}/sheet_no/{$hlvo.sheet_no}">{$hlvo.sheet_no}</a></span>
                    <span>{$hlvo._date}</span>
                    <span>{$hlvo.real_qty|round=2}</span></li>
            </volist>
        </ul>
    </div>
    <div class="suyuan" style="display: none">

    </div>

</div>

    </div>
<!--主体结束-->
<script type="text/javascript">

</script>



    <div class="footer">
  
    </div>


</body>
<script>
    $(function(){
        $(".sl").click(function(){
            $(this).siblings().removeClass('on');      $(this).addClass("on");
            $(".sale_list").show();$(".history_list").hide();
        })

        $(".sy").click(function(){
            $(this).siblings().removeClass('on');      $(this).addClass("on");
            $(".sale_list").hide();$(".history_list").hide();$(".suyuan").show();
        })
        $(".hl").click(function(){
            $(this).siblings().removeClass('on');      $(this).addClass("on");
            $(".history_list").show();$(".sale_list").hide();
        })
        $(".hbtnbuy").click(function(){
            var mid=$(this).attr("data-mid");
			var price=parseFloat($(this).attr("data-price"));
            var total=parseFloat($(this).siblings('.onlyint').val());
            addCart(mid,total,price);

        })
        $(".hcollect").click(function(){
            var mid=$(this).attr("data-mid");
            var total=parseFloat($(this).siblings('.onlyint').val());
            addCollect(mid,total);

        })
    })
	function GetRTime(){
		$(".limit_time").each(function(i,v){
				var EndTime= new Date($(v).attr("data-time")); //截止时间 前端路上 http://www.51xuediannao.com/qd63/
				var NowTime = new Date();
				var t =EndTime.getTime() - NowTime.getTime();
				var d=Math.floor(t/1000/60/60/24);
				var h=Math.floor(t/1000/60/60%24);
				var m=Math.floor(t/1000/60%60);
				var s=Math.floor(t/1000%60);
				$(v).html("还剩:"+d + "天"+h + "时"+m + "分"+s + "秒");
			});
	}
	setInterval(GetRTime,1000);
</script>
</html>